package com.lenovo.lcdm.dcm.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lenovo.lcdm.dcm.dto.DcmConfigurationQueryDto;
import com.lenovo.lcdm.dcm.entity.DcmConfiguration;
import com.lenovo.lcdm.dcm.entity.DcmBusinessConfigurationCategoryC;
import com.lenovo.lcdm.dcm.entity.DcmBusinessConfigurationKeywords;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
* @author xujing30
* @description 针对表【dcm_business_configuration】的数据库操作Service
* @createDate 2024-01-19 10:28:49
*/
public interface DcmConfigurationService extends IService<DcmConfiguration> {

    Long uploadConfiguration(MultipartFile file, String type);
    Long uploadKeywords(MultipartFile file);

    Long uploadCategoryC(MultipartFile file);

    List<DcmConfiguration> getConfigurations(Page page, DcmConfigurationQueryDto queryDto);

    List<DcmConfiguration> getHistory(Long id);

    DcmConfiguration getDetail(Long id);

    List<DcmBusinessConfigurationKeywords> getKeywords();

    List<DcmBusinessConfigurationCategoryC> getCategoryC();

    DcmBusinessConfigurationKeywords getKeywordsById(Long id);

    /**
     * 升版
     * @param dcmConfiguration
     * @return
     */
    DcmConfiguration newVersion(DcmConfiguration dcmConfiguration);
}
